import java.util.OptionalInt;
import java.util.Random;
import java.util.Scanner;

public class test3 {
    public static void main7(String[] args) {
        Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        for(int i=31;i>=1;i-=2){
            System.out.print(n>>i&1);
        }
        System.out.println();
        for(int i=30;i>=0;i-=2){
            System.out.print(n>>i&1);
        }
    }
    public static void main6(String[] args) {
        Random sc = new Random();
        int n = sc.nextInt(100);
        Scanner temp=new Scanner(System.in);
        int s=3;
        while(s!=0){
            s--;
            int sum=temp.nextInt();

            if(s!=0) {
                if (sum == n) {
                    System.out.println("登陆成功");
                    break;
                } else {
                    System.out.println("密码错误，请重新输入");
                    continue;
                }
            }
            else{
                if(s==0){
                    System.out.println("密码错误，退出程序");
                }
            }
        }
    }
    public static void main5(String[] args) {
        Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        int s;
    while (n!=0){
        s=n%10;
        System.out.println(s);
        n/=10;
    }
    } public static void main8(String[] args) {
        Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        while (n!=0){
            System.out.println(n%10);
            n/=10;
        }
    }
    public static void main4(String[] args) {
        int temp=1;
        double sum=0.0;
        for (double i = 1; i <=100 ; i++) {

            sum=sum+(temp*(1/i));
            temp=-temp;
        }
        System.out.printf("%6f",sum);
    }
    public static void main3(String[] args) {
        System.out.println("1000~2000年之间的闰年：");
        for(int i=1000;i<2000;i++){
            if(i%400==0||(i%4==0&&i%100!=0)){
                System.out.print(i+" ");
            }
        }
    }
    public static void main2(String[] args) {
        int temp=0;
        for (int i = 0; i <=100 ; i++) {
            if(i==9){
                temp++;
            }
            if(i%10==9)
            {
                temp++;
            }
        }
        System.out.println("1~100之间出现9的次数是："+temp);
    }
    public static void main1(String[] args) {
        int n=1;
        while (n<=100)
        {
        if((n%3)==0&&n%5==0)
        {
            System.out.println(n);
            n++;
            continue;
        }
        n++;
        }
    }
}
